/*
 * spriteBase.cs
 *
 * Created on November 17, 2007, 10:21 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * Copyright (C) 2010       Mathijs Miermans
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */


using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;


namespace HexTD
{
	public class ESGreenPlus : EnemySpriteBaseRotor
	{

		private static Color color = Color.Green;

		public ESGreenPlus(Game game)
			: base(game, "Green Plus")
		{
			this.rotPerTime = (float)ExtendMath.DegreeToRadian(-10.0);
			this.damageColor = COLOR.GREEN;
			this.damageColorAnti = COLOR.RED;
		}

		public override string getInfostring()
		{
			string retstring = "";
			retstring += "<h1>Green Plus</h1>" +
					"<p>" +
					"It's vulnerability for green towers is a plus. It's resistance against red ones isn't." +
					"</p>" +
					"<p>" + base.getInfostring() + "</p>";
			return retstring;
		}

		public override Color generateColor()
		{
			return color;
		}

#if PORT
		public override Brush generateStroke()
		{
#if PORT
			return new Brush(2.0f * this.context.strokeScale, Brush.CAP_ROUND, Brush.JOIN_MITER);
#else
			return null;
#endif
		}
#endif

#if PORT
		public override Shape generateShape()
		{
#if PORT
			float scale = this.context.paintScale * this.size.scaleMod;
			float[,] points = {
				{-scale / 4, scale / 12},
				{-scale / 12, scale / 12},
				{-scale / 12, scale / 4},
				{+scale / 12, scale / 4},
				{+scale / 12, scale / 12},
				{+scale / 4, scale / 12},
				{+scale / 4, -scale / 12},
				{+scale / 12, -scale / 12},
				{+scale / 12, -scale / 4},
				{-scale / 12, -scale / 4},
				{-scale / 12, -scale / 12},
				{-scale / 4, -scale / 12}
			};
			return Geometry.coordsToGeneralPath(points, true);
#else
			return null;
#endif
		}
#endif

		public override string getSvgName()
		{
			return null;
		}
	}
}